package com.atguigu.springcloud.service;


import com.atguigu.springcloud.entities.CommonResult;
import com.atguigu.springcloud.entities.Payment;
import org.springframework.stereotype.Component;

@Component
public class paymentFallbackService implements PaymentService{


    @Override
    public CommonResult addPayment(Payment payment) {
        return null;
    }

    @Override
    public CommonResult<Payment> getPaymentById(long id) {
        return null;
    }

    @Override
    public Object discovery() {
        return null;
    }

    @Override
    public String paymentTimeout() {
        return null;
    }

    @Override
    public String paymentInfo_ok(Integer id) {
        return "PaymentFallbackService fall Back-paymentInfo_ok";
    }

    @Override
    public String paymentInfo_timeout(Integer id) {
        return "PaymentFallbackService fall Back-paymentInfo_timeout";
    }
}
